package com.tang.multi.v3;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @author Tang
 * @classname Main
 * @description [ 单rector多线程 ]
 * @date 2021/8/10 15:22
 */
@Slf4j
public class Main {
    public static void main(String[] args) throws IOException {
        Rector rector = new Rector(9999);
        log.info("服务监听启动...");
        rector.run();
        try {
            Thread.sleep(Integer.MAX_VALUE);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}